package com.ujson.base.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <h3>ujson-parent</h3>
 * <p>全局配置</p>
 *
 * @author JerryLiu  a1031757312@gmail.com
 * @version 1.0
 * @date 2021-11-20 19:48
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "ujson")
public class GlobalConfig {
    private Jwt jwt;

    @Data
    public static class Jwt {
        private Long expire;
        private String secretKey;
        private String roleKey;
        private String authHeaderKey;
    }
}
